import { http } from '@/utils/layoutService'

const API = {
  getAllUserApi: '/user/allUser',
  postLoginApi: '/user/login',
}

export interface LoginInter {
  account: string
  password: string
}

export const getAllUserApi = () => http.get(API.getAllUserApi)
export const postLoginApi = (data: LoginInter) =>
  http.post(API.postLoginApi, { params: data })
